class PlanFilterEntity {
  List<Filter>? kind;
  List<Filter>? league;
  List<Filter>? playType;
  int? total;

  PlanFilterEntity({this.kind, this.league, this.playType, this.total});

  PlanFilterEntity.fromJson(Map<String, dynamic> json) {
    if (json['kind'] != null) {
      kind = <Filter>[];
      json['kind'].forEach((v) {
        kind!.add(new Filter.fromJson(v));
      });
    }
    if (json['league'] != null) {
      league = <Filter>[];
      json['league'].forEach((v) {
        league!.add(new Filter.fromJson(v));
      });
    }
    if (json['playType'] != null) {
      playType = <Filter>[];
      json['playType'].forEach((v) {
        playType!.add(new Filter.fromJson(v));
      });
    }
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.kind != null) {
      data['kind'] = this.kind!.map((v) => v.toJson()).toList();
    }
    if (this.league != null) {
      data['league'] = this.league!.map((v) => v.toJson()).toList();
    }
    if (this.playType != null) {
      data['playType'] = this.playType!.map((v) => v.toJson()).toList();
    }
    data['total'] = this.total;
    return data;
  }
}

class Filter {
  int? cnt;
  String? name;
  String? type;

  Filter({this.cnt, this.name, this.type});

  Filter.fromJson(Map<String, dynamic> json) {
    cnt = json['cnt'];
    name = json['name'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['cnt'] = this.cnt;
    data['name'] = this.name;
    data['type'] = this.type;
    return data;
  }
}
